package com.special.base;

import com.special.ResideMenuDemo.MenuActivity;
import com.special.ResideMenuDemo.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class WelcomeActivity extends Activity {
		@Override
		protected void onCreate(Bundle savedInstanceState) {
			super.onCreate(savedInstanceState);
			setContentView(R.layout.welcome);
			new Thread(new Runnable() {
				
				@Override
				public void run() {
					try {
						Thread.sleep(1000);
						turnPage();
					} catch (InterruptedException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}					
				}
			}).start();
		}
			

		/**
		 * 跳转到主界面
		 */
		private void turnPage() {
			Intent intent = new Intent(this, MenuActivity.class);
			startActivity(intent);
			finish();
		}	
}
